<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增出库登记')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-ncOutPut-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">育苗日期：</label>
            <div class="col-sm-8">
                <input type="text" style="height: 34px;" data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}" name="planTime" data-type="datetime" class="time-input" id="planTime"/>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">作物名称：</label>
            <div class="col-sm-8">
                <input id="cropNameCn" name="cropNameCn" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">作物品种：</label>
            <div class="col-sm-8">
                <input id="cropVarietiesCn" name="cropVarietiesCn" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">育苗数量(株)：</label>
            <div class="col-sm-8">
                <input id="amount" name="amount" required class="form-control" type="number" onkeyup=" value=value.replace(/^(0+)|[^\d]+/g,'')">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">取苗日期：</label>
            <div class="col-sm-8">
                <input type="text" style="height: 34px;" data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}" name="createTime" data-type="datetime" class="time-input" id="createTime"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">经手人：</label>
            <div class="col-sm-8">
                <input id="createBy" name="createBy" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">接收人：</label>
            <div class="col-sm-8">
                <input id="receiver" name="receiver" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea rows="4" id="remark" name="remark" class="form-control" type="text"></textarea>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "system/ncOutPut"
    $("#form-ncOutPut-add").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-ncOutPut-add').serialize());
        }
    }
</script>
</body>
</html>
